package com.chenyongjing.design.pattern.chain.general;

/**
 * @Author chen
 * @Date 2022/11/16 22:33
 */
public class ConcreteHandlerA extends Handler{
    @Override
    public void handlerRequest(String request) {
        if("requestA".equals(request)){
            System.out.println(this.getClass().getSimpleName()+" deal with request: "+request);
            return;
        }
        if(this.nextHandler != null){
            this.nextHandler.handlerRequest(request);
        }

    }
}
